package com.freecat.xmqgct.mvp.model.entity;

import com.google.gson.JsonObject;

/**
 * 作者：win
 * 时间：2019/9/23
 * 注释：
 */
public class BaseResponse<T> {

    /**
     * status : 0
     * error : 验证失败
     * data : null
     */

    private String status;
    private String code;
    private String msg;

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    JsonObject result;

    public JsonObject getResult() {
        return result;
    }

    public void setResult(JsonObject result) {
        this.result = result;
    }
//    private T result;

//    public T getResult() {
//        return result;
//    }
//
//    public void setResult(T result) {
//        this.result = result;
//    }


    private String error;
    private T data;

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getError() {
        return error;
    }

    public void setError(String error) {
        this.error = error;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }




    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }
}
